import storage from "@/utils/storage";
import { http, Method } from "@/utils/request.js";
import api from "@/config/api.js";


/**
 * 环信用户账号初始化
 */
export function initHXUser(params) {
    return http.request({
        url: `${api.common}/common/IMServer/initHXUser`,
        method: Method.POST,
        needToken: true,
        params,
        header: {
            accessToken: storage.getAccessToken()
        }
    });
}
/**
 * 环信用户注册
 */
export function createUser(params) {
    return http.request({
        url: `${api.common}/common/IMServer/createUser`,
        method: Method.POST,
        needToken: true,
        params,
    });
}